<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<html>
<%@ include file="../common.jsp"%>
<script type="text/javascript" src="<%=basePath%>js/datePicker/WdatePicker.js" defer="defer"></script>
<script type="text/javascript" src="js/artDialog/artDialog.js?skin=idialog" ></script>
<script type="text/javascript" src="js/planeButton.js"></script>
<script type="text/javascript" src="js/page.js"></script>
<script type="text/javascript" >

function getById(id){
	return document.getElementById(id);
}
	changeInput=function(){
		if (($('#last_state').is(':checked'))==true) {
			getById('changebox').outerHTML='<select name="vo.mobileRecord.decription" id="changebox"><option value="0" ${vo.mobileRecord.decription==0?"Selected":""}>处理中</option><option value="2" ${vo.mobileRecord.decription==2?"Selected":""}>充值成功</option><option value="3" ${vo.mobileRecord.decription==3?"Selected":""}>部分成功</option><option value="4" ${vo.mobileRecord.decription==4?"Selected":""}>充值失败</option><option value="5" ${vo.mobileRecord.decription==5?"Selected":""}>创建订单</option></select>';
		}else{
			getById('changebox').outerHTML='<input name="vo.mobileRecord.decription" value="${vo.mobileRecord.decription}" id="changebox"/>';
			
		}
	};
	
	selectChange=function(){
		$("#changebox").empty();
	};
	
	
</script>
<style type="text/css">
<!--

#changebox {
	height： 25px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<body  onload="changeInput()">
<form action="mobile/mobileRecord_list.shtml" method="post">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" id="myTable">
		<tr>
		
			<td width="17" valign="top" background="images/mail_leftbg.gif"><img
				src="images/left-top-right.gif" width="17" height="29" /></td>
			<td valign="top" background="images/content-bg.gif">
			<div class="titlebt">话费查询</div>
			</td>
			<td width="16" valign="top" background="images/mail_rightbg.gif"><img
				src="images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
			<br/>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mytable">
        		<tr><th class="left" width="15%">选择条件</th><td class="border-top">
        			<input type="radio" ${(vo.mobileRecord.title==1||vo.mobileRecord.title==null)?'checked':''} name="vo.mobileRecord.title" id="order_Id" value="1" onclick="changeInput()" /><label for="order_Id">订单号</label>
        			<input type="radio" ${vo.mobileRecord.title==2?'checked':''} name="vo.mobileRecord.title" id="tran_id" value="2" onclick="changeInput()" /><label for="tran_id">平台订单号</label>
        			<input type="radio" ${vo.mobileRecord.title==3?'checked':''} name="vo.mobileRecord.title" id="phone_num" value="3" onclick="changeInput()"/><label for="phone_num">充值号码</label>
        			<input type="radio" ${vo.mobileRecord.title==4?'checked':''} name="vo.mobileRecord.title" id="member_No" value="4" onclick="changeInput()"/><label for="member_No">用户编号</label>
        			<input type="radio" ${vo.mobileRecord.title==5?'checked':''} name="vo.mobileRecord.title" id="last_state" value="5" onclick="changeInput()"/><label for="last_state">状态</label>
        		</td></tr>
        		<tr>
        			<th class="left" width="15%">输入条件</th>
        			<td>
        				<input name="vo.mobileRecord.decription" value="${vo.mobileRecord.decription}" id="changebox"/>
        			</td>
        		</tr>
        		<tr><th class="left" width="15%">选择日期</th><td><input type="text" class="Wdate" value="${vo.mobileRecord.startTime}" onclick="WdatePicker({maxDate:'%y-%M-%d'});" readonly="readonly" name="vo.mobileRecord.startTime" id="startTime" align="middle" /> ~
					<input type="text" class="Wdate"  value="${vo.mobileRecord.endTime}" onclick="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}',maxDate:'%y-%M-%d'});" readonly="readonly" name="vo.mobileRecord.endTime" align="middle" /></td></tr>
        		<tr>
        			<td style="text-align: center;" class="left" colspan="3"><button id="btn_search" type="submit" class="Submit">立即查询</button>&nbsp;&nbsp;<button id="btn_clear" type="button" onclick="clearAll(this.form)" class="Submit">清 空</button></td>
        		</tr>
        		</table>
        	
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
				<TABLE height="auto" border=0 class="mytable" cellPadding=0 cellSpacing=0>
		<TBODY>
			<TR>
				<TD height="5" colspan="16"></TD>
			</TR>
			<TR>
				<TH class="left">订单号</TH>
				<TH>平台订单号</TH>
				<TH>用户编号</TH>
				<TH>充值号码</TH>
				<TH>创建时间</TH>
				<TH>充值面额</TH>
				<TH>返回结果</TH>
				<TH>&nbsp;</TH>
			</TR>
			<s:iterator value="vo.mobileRecords" id="Record" var="lst">
				<TR>
					<td class="left">${lst.orderId}</td>
					<td>${lst.tranid}</td>
					<td>${memberNo}</td>
					<td>${lst.phonenum}</td>
					<td><s:date name="dateTime" format="yyyy年MM月dd日 HH:mm"/></td>
					<td><fmt:formatNumber value="${lst.proPrice}" pattern="￥0.00"></fmt:formatNumber>		
					<td>${lst.resultNo}</td>
					<td style="text-align: center;">
					<a href="javascript:void(0);" class="left_txt3" style="cursor: hand;" onclick = "location.href='mobile/mobileRecordDetail_list.shtml?mid=${lst.id}';return false;">查看</a>
					</td>
				</TR>
			</s:iterator>
			<tr>
				<td class="left" colspan="10" align="right"
					style="background: #FAFBFC repeat-x; height: 28">
					${vo.pageBean.pageToolsMenu}</td>
			</tr>
			<TR>
				<TD height="5" colspan="16"></TD>
			</TR>
		</TBODY>
	</TABLE>
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		
		<tr>
			<td valign="bottom" background="images/mail_leftbg.gif"><img
				src="images/buttom_left2.gif" width="17" height="17" /></td>
			<td background="images/buttom_bgs.gif"><img
				src="images/buttom_bgs.gif" width="17" height="17"></td>
			<td valign="bottom" background="images/mail_rightbg.gif"><img
				src="images/buttom_right2.gif" width="16" height="17" /></td>
		</tr>
	</table>
	</form>
</body>
</html>